# Project: fs
# Makefile created by Dev-C++ 5.11

CPP      = g++.exe
CC       = gcc.exe
LD		 = ld.exe
WINDRES  = windres.exe
OBJ      = ./../build/fs/fs.o ./../build/fs/namei.o ./../build/fs/mount.o ./../build/fs/devfs.o
LINKOBJ  = ./../build/fs/fs.o ./../build/fs/namei.o ./../build/fs/mount.o ./../build/fs/devfs.o
LIBS     = -static-libgcc -m32
INCS     = -I"./../include" -I"./../include/fs" -I"./../include/std"
CXXINCS  = -I"./../include" -I"./../include/fs" -I"./../include/std"
BIN      = ../build/fs/vfs.o
CXXFLAGS = $(CXXINCS) -m32 -O3 -pipe
CFLAGS   = $(INCS) -m32 -O3 -pipe
RM       = rm.exe -f

.PHONY: all all-before all-after clean clean-custom

all: all-before $(BIN) all-after

clean: clean-custom
	${RM} $(OBJ) $(BIN)

$(BIN): $(OBJ)
	$(LD) -r $(LINKOBJ) -o $(BIN)

./../build/fs/fs.o: fs.c
	$(CC) -c fs.c -o ./../build/fs/fs.o $(CFLAGS)

./../build/fs/namei.o: namei.c
	$(CC) -c namei.c -o ./../build/fs/namei.o $(CFLAGS)

./../build/fs/mount.o: mount.c
	$(CC) -c mount.c -o ./../build/fs/mount.o $(CFLAGS)

./../build/fs/devfs.o: devfs.c
	$(CC) -c devfs.c -o ./../build/fs/devfs.o $(CFLAGS)
